<div class="block">
	<div>
	<?php foreach($hostnames as $k=>$v){?>
	    <span style="color:blue"><?php echo $v['hostname'];?>(<?php echo $v['id'];?>)</span>
	<?php }?>
	</div>
    <form action="<?php echo Appconfig_IndexController::build_uri();?>" method="post">
    	hostname：<input type="text" name="hostname" value=""/>
    	<input type="submit" value="add"/>
    	<input type="hidden" name="action" value="add_hostname"/>
    </form>
</div>

<div class="block">
	<div>
	<table>
		<tr>
		<?php $i=0;foreach($webapps as $v){?>
    	    <td><a style="color:#c30"><?php echo $v['solrname'];?></a>：
    	    <a style="color:blue"><?php echo $v['webapp'];?>(<?php echo $v['id'];?>)</a>
    	    <a style="color:green"><?php echo $v['port'];?></a></td>
    	    <?php if($i%3==2){?></tr><tr><?php }
    	    $i++?>
    	<?php }?>
		</tr>
	</table>
	</div>
    <form action="<?php echo Appconfig_IndexController::build_uri();?>" method="post">
    	solrname：<input type="text" name="solrname" value=""/>
    	webapp：<input type="text" name="webapp" value=""/>
    	port：<input type="text" name="port" value=""/>
    	<input type="submit" value="add"/>
    	<input type="hidden" name="action" value="add_webapp"/>
    </form>
</div>